package com.sscw.task.enums;

/**
 * @Author: sunxuzong
 * @Date: 2024/07/19
 */
public enum BattleRankCodeEnum {
    tbj("tbj","推币机"),
    jj("jj","街机"),
    yl("yl","娱乐")
    ;

    private String code;

    private String desc;

    BattleRankCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static BattleRankCodeEnum getByCode(Integer code){
        for (BattleRankCodeEnum enums : BattleRankCodeEnum.values()){
            if (enums.getCode().equals(code)){
                return enums;
            }
        }
        return  null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
